<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class AjaxController extends Controller
{
    //
    public function index() {
        // $msg = "This is a simple message.";
        // return response()->json(array('msg'=> $msg), 200);
        return response()->json([
            'status' => 'success',
            'data-id' => '123456',
            'data'=> '456',
            'msg' => 'fuck it'
        ]);
     }
}
